﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using ForumLibrary.Data;
using ForumLibrary;

public partial class Threads : System.Web.UI.Page
{
    private string forumName;
    private bool isModerator;
    private static string _username;

    protected void Page_Load(object sender, EventArgs e)
    {
        forumName = Request.Params["Topic"];
        if (Session["isModerator"] != null)
            isModerator = (bool)Session["isModerator"];
        ErrorLabel.Text = "";

        SiteMapUpdater._ForumName = forumName;
        SiteMapUpdater._ThreadName = null;
        
        if (Session["username"] != null)
        {
            _username = Session["username"].ToString();
        }
    }
}